package beautiful.butterfly.drds.binlog.event;

public class EventTypes
{

    public static boolean isWrite(EventType eventType)
    {
        return eventType == EventType.pre_ga_write_rows || eventType == EventType.write_rows || eventType == EventType.ext_write_rows;
    }

    public static boolean isUpdate(EventType eventType)
    {
        return eventType == EventType.pre_ga_update_rows || eventType == EventType.update_rows || eventType == EventType.ext_update_rows;
    }

    public static boolean isDelete(EventType eventType)
    {
        return eventType == EventType.pre_ga_delete_rows || eventType == EventType.delete_rows || eventType == EventType.ext_delete_rows;
    }
}
